package com.design.movieticket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.design.movieticket.entity.Role;

public interface RoleService {
    /** 角色分页查询 */
    public LambdaQueryWrapper buildQuery(Role role);

    /** 分页相关 */
    public <E extends IPage<Role>> E page(E page, Wrapper<Role> queryWrapper);

    /** 新增或更新建议数据 */
    public void addOrUpdateRoleInfo(Role role);

    /** 获取角色详情 */
    public Role getRoleDetail(long id);

    /** 删除角色 */
    public void delRoleById(long id);
}
